
<%-- 
    Document   : bim_mes01
    Created on : 10/11/2008, 07:41:17 PM
    Author     : Lizardo Rios Villavicencio
--%>
<%@ page import="java.util.ArrayList, org.me.codigo.Matematico, org.me.codigo.Baldor" %>
<%@ page errorPage="../../../../../error.jsp?from=bim_mes01.jsp" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!--  pageEncoding="ISO8859-1"  -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <%
            ArrayList listaHorario = new ArrayList();
            listaHorario = (ArrayList) session.getAttribute("s_lista_horario_docente");
            String codProfesor = (session.getAttribute("s_codigo_personal") == null) ? "" : (String) session.getAttribute("s_codigo_personal");
            String nombreProfesor = (session.getAttribute("s_nombre_profesor") == null) ? "" : (String) session.getAttribute("s_nombre_profesor");
            String nivelProfesor = (session.getAttribute("s_nivel_profesor") == null) ? "" : (String) session.getAttribute("s_nivel_profesor");
            String turnoProfesor = (session.getAttribute("s_turno_profesor") == null) ? "" : (String) session.getAttribute("s_turno_profesor");
            boolean estilo = (request.getAttribute("r_estilo") == null) ? true : false;
            String fuente = "";
            String tamanio = "";
        %>
        
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <% if (estilo) {%>
        <link href="../../../../../css/admin_1.css" rel="stylesheet" type="text/css" />
        <link href="../../../../../css/alumno.css" rel="stylesheet" type="text/css" />
		<link href="../../../../estatica/css/style.css" rel="stylesheet" type="text/css" />
        <% } else {%> 
        <link href="dinamica/css/admin_1.css" rel="stylesheet" type="text/css" />
        <link href="dinamica/css/alumno.css" rel="stylesheet" type="text/css" />
		<link href="estatica/css/style.css" rel="stylesheet" type="text/css" />
        <% }%>
        <title>Reporte Horario Por Profesor</title>
        
        <script language="JavaScript">
             function imprimir() {
                window.parent.frames[5].focus();
                window.print();
            }
        </script>
        <style type="text/css">
            TABLE {
                /*padding:2px;*/
                /*border-color:#0A01F9; */
            }
            TH { border-color:#435C9F; }
            TR { border-color:#435C9F; }
            TD { border-color:#435C9F; }
        </style>
    </head>
    
    <body>
        <input type=button value="Imprimir" onClick="imprimir()" />
        <br/><br/>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td rowspan="2" align="center"><img src="dinamica/img/logo.jpg" width="50" height="50"></td>
                <td align="center" valign="bottom"><font face="arial" size="5"><b>I.E. ALEXANDER GRAHAM BELL</b></font></td>
            </tr>
            <tr>
                <td align="center" valign="top"><font face="arial" size="4"><b>Reporte Horario Por Profesor</b></font></td>
            </tr>
        </table>
        <br/>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td>&nbsp;</td>
                <td colspan="2" valign="top">
                    <table width="100%" border="1" cellpadding="2" cellspacing="0" id="tabla">
                        <tr>
                            <td width="5%" align="right">Profesor:&nbsp;</td><td width="90%"><%=nombreProfesor%></td>
                            <td width="4%" align="right">C&oacute;digo:&nbsp;</td><td width="36%"><%= codProfesor%></td>
                        </tr>
                        <tr>
                            <td align="right">Nivel:&nbsp;</td><td><%=nivelProfesor%></td>
                            <td align="right">Turno:&nbsp;</td><td><%=turnoProfesor%></td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="1">&nbsp;</td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td width="4" height="233"></td>
                <td colspan="2" valign="top">
                    <table width="100%" border="1" cellpadding="2" cellspacing="0">
                        <th width="1%" bgcolor="#598AAB">Bloq.</th><th width="9%" bgcolor="#598AAB">Hora</th>
                        <th width="15%" bgcolor="#598AAB">Lunes</th><th width="15%" bgcolor="#598AAB">Martes</th>
                        <th width="15%" bgcolor="#598AAB">Miercoles</th><th width="15%" bgcolor="#598AAB">Jueves</th>
                        <th width="15%" bgcolor="#598AAB">Viernes</th><th width="15%" bgcolor="#598AAB">Sabado</th>
                            <%  if (listaHorario != null) {
                                    fuente = "MS Serif";//Helvetica, Lithos Black, MS Serif, MS Sans Serif, Small Fonts, Swiss
                                    tamanio = "1";
                                    for (int fils = 1; fils < listaHorario.size(); ++fils) {
                                        String[] unaFila = (String[]) listaHorario.get(fils);  
                                        String valor = null;                                    %>
                        <tr> 
                            <% valor = (unaFila[0] == null) ? "" : unaFila[0]; %>
                            <%-- valor = "lizardo felipe rios villavicencio"; --%>
                            <td height="40" align="center">
                                <font face="<%= fuente%>" size="1">
                                    <b><%= valor%></b>       <!-- bloque -->
                                </font>
                            </td>
                            
                            <% valor = (unaFila[1] == null) ? "" : unaFila[1]; %>
                            <td align="center">
                                <font face="<%= fuente%>" size="<%= tamanio%>">
                                    <%= valor%>       <!-- hora -->
                                </font>
                            </td>
                            
                            <% valor = (unaFila[2] == null) ? "" : unaFila[2]; %>
                            <td align="center">
                                <font face="<%= fuente%>" size="<%= tamanio%>">
                                    <%= valor%>       <!-- lunes -->
                                </font>
                            </td>
                            
                            <% valor = (unaFila[3] == null) ? "" : unaFila[3]; %>
                            <td align="center">
                                <font face="<%= fuente%>" size="1">
                                    <%= valor%>       <!-- martes -->
                                </font>
                            </td>
                            
                            <% valor = (unaFila[4] == null) ? "" : unaFila[4]; %>
                            <td align="center">
                                <font face="<%= fuente%>" size="<%= tamanio%>">
                                    <%= valor%>       <!-- miercoles -->
                                </font>
                            </td>
                            
                            <% valor = (unaFila[5] == null) ? "" : unaFila[5]; %>
                            <td align="center">
                                <font face="<%= fuente%>" size="<%= tamanio%>">
                                    <%= valor%>       <!-- jueves -->
                                </font> 
                            </td>   
                            
                            <% valor = (unaFila[6] == null) ? "" : unaFila[6]; %>
                            <td align="center">
                                <font face="<%= fuente%>" size="<%= tamanio%>">
                                    <%= valor%>       <!-- viernes -->
                                </font>
                            </td>
                            <% valor = (unaFila[7] == null) ? "" : unaFila[7]; %>
                            <td align="center">
                                <font face="<%= fuente%>" size="<%= tamanio%>">
                                    <%= valor%>       <!-- sabado -->
                                </font>
                            </td>
                        </tr>
                            <%      } 
                                }       %>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="1">&nbsp;</td>
            </tr>
        </table>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td height="2"><input type=button value="Imprimir" onClick="imprimir()" /></td>
                <td align="right"><a href="javascript:window.history.back()">Retornar</a>&nbsp;</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </table>
    </body>
</html>